package com.xuecheng.auth.client;

import com.xuecheng.framework.domain.ucenter.ext.XcUserExt;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "XC-SERVICE-UCENTER")
public interface UcenterClient {
    /**
     * @Description: 远程调用查询用户接口
     * @Param:
     * @return:
     * @Author: Mr.Yuan
     * @Date:
     */
    @GetMapping("/ucenter/findOne/{username}")
    public XcUserExt getUser(@PathVariable("username") String username);
}
